#include "GUITexture.h"
#include "GraphicsManager.h"

CGUITexture::CGUITexture()
: m_Texture(NULL)
{
	
}
bool CGUITexture::LoadFile()
{
	return !FAILED(D3DXCreateCubeTextureFromFile(CORE->GetGraphicsManager()->GetDevice(), m_FileName.c_str(), &m_Texture));
}

void CGUITexture::Activate(size_t StageId)
{
	CORE->GetGraphicsManager()->GetDevice()->SetTexture(StageId,m_Texture);
}